// 老师对应讲台的信息获取
import axios from "axios";

export function getCourseInfo(sessionId) {
    return axios({
        method: "post",
        url: "/api/teacher/courseInfo",
        headers: {
            Authorization: localStorage.getItem("Authorization")
        },
        data: sessionId
        }).then(response => {
            return {
                result: true,
                courseInfo: response.data
            }
        }).catch(error => {
            return {
                result: false,
                msg: error.response.data.msg
            }
    });
}